﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Flow_DocList" Codebehind="DocList.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../css.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="../Celend/popcalendar.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="100%">
		<tr height="30">
			<td width="3%" background="../Images/topbg.jpg" align=center><IMG height="16" src="../Images/icon/right.GIF"></td>
			<td background="../Images/topbg.jpg" width="80"><b>全部公文列表</b></td>
			<TD background="../Images/topbg.jpg" align="right">
			</TD>
		</tr>
	</table>
	<table align="center" border="0" cellpadding="1" cellspacing="0" width="100%">
        <tr>
            <td style="height: 28px; width: 151px;"></td>
        </tr>
        <tr>
            <td align="right"style="height: 24px; width: 151px;">
                公文流程：</td>
                <td style="width: 170px"><asp:DropDownList ID="drpFlow" runat="server" Width="100px">
                </asp:DropDownList></td>
                <td style="width: 101px" align="right">申请人所在部门：</td>
                <td><asp:DropDownList ID="drpBranch" runat="server" Width="105px" OnSelectedIndexChanged="drpBranch_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>&nbsp; &nbsp;&nbsp;<asp:DropDownList ID="drpUser" runat="server"
                    Width="98px">
                </asp:DropDownList>
                &nbsp; &nbsp;
                &nbsp; &nbsp;<asp:Label ID="lblCount" runat="server" Width="64px"></asp:Label></td>
        </tr>
        <tr>
            <td align="right"style="height: 13px; width: 151px;">
                申请时间：</td>
                <td style="width: 170px"><asp:TextBox ID="txtDate" runat="server" Width="110px" CssClass="TxCss" Height="17px"></asp:TextBox>    
   <img id="Image_blqx1" style="CURSOR: hand; width: 23px; height: 15px;" onclick="popUpCalendar(this,document.forms[0].txtDate,'yyyy-mm-dd')" src="../Celend/Images/calendar.gif" />
                </td>
                <td style="width: 101px" align="right">
                主题关键字：</td>
                <td><asp:TextBox ID="txtTitle"
                    runat="server" Width="193px"></asp:TextBox>
                &nbsp;
                &nbsp; &nbsp;&nbsp; &nbsp;
                    <asp:Button ID="btnFind" runat="server" Height="21px" class="BnCss" Text="查 询" OnClick="btnFind_Click" /></td>
        </tr>
        <tr>
            <td colspan="4" style="height: 29px">
                <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="True" OnCheckedChanged="chkAll_CheckedChanged"
                    Text="选择当前页的所有信息" />
                <asp:Button ID="btnDel" runat="server" class="BnCss" Text="删 除" Width="54px" OnClick="btnDel_Click" Height="20px" /></td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" width="100%" DataKeyNames="ID">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                &nbsp;
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkDo" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Title" HeaderText="主题" />
                        <asp:TemplateField HeaderText="工作流程">
                            <ItemTemplate>
                                <asp:Label ID="lblFlow" runat="server"><%# getFlow(DataBinder.Eval(Container.DataItem,"FlowID").ToString())%></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="步骤">
                            <ItemTemplate>
                                <asp:Label ID="lblStep" runat="server"><%# getStep(DataBinder.Eval(Container.DataItem,"ID").ToString())%></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="申请人">
                            <ItemTemplate>
                                <asp:Label ID="lblUser" runat="server"><%# getUser(DataBinder.Eval(Container.DataItem,"UserID").ToString())%></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="PubDate" HeaderText="申请时间" />
                        <asp:TemplateField HeaderText="查看">
                            <ItemTemplate>
                                <a href="ArchivesInfo.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID")%>">查看</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle BackColor="#EFF3FB" />
                    <EditRowStyle BackColor="#2461BF" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            
            </td>
        </tr>
        <tr><td align="center" colspan="4">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="第<font color='red'><b>%CurrentPageIndex%</b></font>页  共:%PageCount%页&nbsp; %StartRecordIndex%-%EndRecordIndex%"
                                                                                            CustomInfoTextAlign="Center" FirstPageText="【首页】" Height="25px" HorizontalAlign="Center"
                                                                                            InputBoxStyle="width:19px" LastPageText="【尾页】" NextPageText="【下页】 " 
                                                                                            PrevPageText="【前页】 " ShowCustomInfoSection="Left" ShowInputBox="Always" ShowNavigationToolTip="True"
                                                                                            Width="680px" OnPageChanged="AspNetPager1_PageChanged">
                    </webdiyer:AspNetPager>
        </td></tr>
        <tr>
            <td style="height: 14px" colspan="4">
                </td>
        </tr>
    </table>
    </form>
</body>
</html>